home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / 3D QuickTime Dynamics / kSan Headers / VerletMethod.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-24  |  852 b   |  41 lines

  1.  
  2. #ifndef __VerletMethod__
  3. #define __VerletMethod__
  4. #include "kSanMethodPlugIn.h"
  5.  
  6.  
  7. typedef struct VerletMethodType 
  8. {
  9.     long numSequentialNoTimestepChange;
  10.     kSanSimulation *sim;
  11.     particle *basePart;
  12.     kSanGroup **baseGroup;
  13.     kSanAtomtype **baseType;
  14.  
  15.       VSList accels;
  16.       double maxDelPos;
  17.       double maxDelSafetyFactor;
  18.       double verletDeltaT;
  19.       long verletItersPerSimIter;
  20.       long verletItersDone;
  21.       long numGroups;
  22. }
  23. VerletMethod;
  24.  
  25. typedef struct nextGpPositionsInfoType
  26. {
  27.     kozoObject *verletObj;
  28.     VerletMethod *verlet;
  29.     kSanSimulation *sim;
  30.     kSanAtomtype **baseAT;
  31.     kSanGroup *gp;
  32.     long numPartsInGroup;
  33.     long *gpPartList;
  34.     // the issue here is that kSan is allowed to and does switch atoms to the other side of the cell
  35.     // so, we always have to record these as delPos rather than absolute!
  36.     kSanVector *accelArray ;
  37. }
  38. nextGpPositionsInfo;
  39.  
  40.  
  41. #endif